package com.common.model;

import lombok.Data;

/**
 * 邻接矩阵
 *
 * @author think
 * @version 1.0.0
 * @since 2020/2/28
 */
@Data
public class GraphMatrix {
    /**
     * 顶点个数
     */
    private int vertextNum;

    /**
     * 矩阵存储
     */
    int[][] edge;

    public GraphMatrix(int vertextNum) {
        this.vertextNum = vertextNum;
        edge = new int[vertextNum][vertextNum];
    }
}
